home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 4
/
Aminet 4 - November 1994.iso
/
aminet
/
dev
/
amos
/
amosl0794.lzh
/
AMOSLIST
/
000086_amos-request@svcs1.digex.net_Sat Jul 23 14:31:42 1994.msg
< prev
next >
Wrap
Internet Message Format
|
1994-08-01
|
2KB
Received: from hela.INS.CWRU.Edu by nfs1.digex.net with SMTP id AA19068
(5.67b8/IDA-1.5 for <mcox@access.digex.net>); Sat, 23 Jul 1994 14:31:40 -0400
Received: from svcs1.digex.net (svcs1.digex.net [164.109.10.23]) by hela.INS.CWRU.Edu with SMTP (8.6.8.1+cwru/CWRU-2.1-freenet-gw)
id OAA14692; Sat, 23 Jul 1994 14:31:24 -0400 (from amos-request@svcs1.digex.net)
Received: by svcs1.digex.net id AA00908
(5.67b8/IDA-1.5 for amos-out); Sat, 23 Jul 1994 12:43:39 -0400
Received: from nfs1.digex.net by svcs1.digex.net with SMTP id AA00904
(5.67b8/IDA-1.5 for <amos@svcs1.digex.net>); Sat, 23 Jul 1994 12:43:36 -0400
Received: from access1.digex.net by nfs1.digex.net with SMTP id AA15856
(5.67b8/IDA-1.5 for <amos-list@access.digex.com>); Sat, 23 Jul 1994 12:43:34 -0400
Received: by access1.digex.net id AA22497
(5.67b8/IDA-1.5 for amos-list@access.digex.com); Sat, 23 Jul 1994 12:43:33 -0400
From: M D Cox <mcox>
Message-Id: <199407231643.AA22497@access1.digex.net>
Subject: PIPEing
To: amos-list@access.digex.net (AMOS Mailing List)
Date: Sat, 23 Jul 1994 12:43:33 -0400 (ADT)
X-Mailer: ELM [version 2.4 PL23]
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Content-Length: 760
Status: RO
Has anyone ever written a program to accept STDIN or piping? For
instance, if I wrote a program called WC that would count the number of words
and lines in a text file, would I be able to:
type textfile.txt > WC
or
type textfile.txt | WC
I know i can do: WC textfile.txt, but then could I do:
WC textfile.txt > result.txt
with result.txt being created and containing the output of WC?
If anyone is familiar with programs like AWK or GREP, help me out if you
can, please! :)
Mike
--
Michael Cox Work: mcox@access.digex.net
A1200/120 w/1230XA 50/50/4 = SPEED! Play: aj639@Cleveland.FreeNet.EDU
For info on the AMOS Mailing List, contact me!
For AMOS Pro news, finger mcox@access.digex.net